<div id="information">
<br /><br />
<form method="post" action="addquestions.php" class="form">
	<h3 class="form_h3">Тест</h3>
	<?php
	$sel_u = mysql_query('SELECT teacher_to FROM users WHERE username="'.$_SESSION['username'].'"');
	$row_u = mysql_fetch_assoc($sel_u);
	
	$select_to='SELECT test_id, test_name FROM test WHERE module = "'.$row_u['teacher_to'].'"';
	$res_to=mysql_query($select_to);
	?>
	<p><select name="test_to">
	<?php
	while($row_to=mysql_fetch_assoc($res_to)){
	?>
	<option value="<?php echo $row_to['test_id']; ?>"><?php echo $row_to['test_name']; ?></option>
	<?php
	}
	?>
	</select></p>
	<h3 class="form_h3">Въпрос</h3>
	<p><input type="text" value="<?php echo $_POST['q_name']; ?>" name="q_name" /></p>
	<h3 class="form_h3">Отговори</h3>
	<?php
	$i=1;
	while($i<=4){
	?>
	<p><input type="radio" style="width: 40px;" name="question" value="<?php echo $i; ?>"/><input type="text" value="<?php echo $_POST[$i]; ?>" name="<?php echo $i; ?>" /></p>
	<?php
	   $i++;
	}
	?>
	<p><input type="submit" name="submit_q" value="Качи въпроса" />
	<input type="hidden" name="hide33" value="90"/></p>
	</form>
<?php
   include "../php/addquestions.php";
?>
</div>